package org.scrm.component;


import lombok.extern.slf4j.Slf4j;
import org.scrm.service.ProductService;
import org.scrm.util.HttpClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

@Component
@Slf4j
public class DataInit {

    @Autowired
    private ProductService productService;

    @PostConstruct
    public void init() throws InterruptedException {
        String mobile = "";
        log.info("初始化加载数据  init");
         String sended = productService.smsSend(mobile);
        log.info("send ===" +sended);
     }
}
